<%@page pageEncoding="utf-8" contentType="text/html;charset=utf-8"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@include file="topBar.jsp" %>
<%@include file="leftBar.jsp" %>
<%@include file="bottomBar.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link type="text/css" rel="stylesheet" href="/easybuy/css/style.css" />
    <!--[if IE 6]>
    <script src="/easybuy/js/iepng.js" type="text/javascript"></script>
        <script type="text/javascript">
           EvPNG.fix('div, ul, img, li, input, a'); 
        </script>
    <![endif]-->
        
    <style type="text/css">
    	#myDiv{position: absolute;left: 400px;top: 250px;font-size: 15px;}
        table {
            margin: 0 auto;
            width: 700px;
            border:1px solid black;
            border-collapse: collapse;/*关键代码*/
        }
        th,td {
            text-align: center;
            border: 1px solid black;
        }
	</style>
<title>尤洪</title>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">

</script>
</head>
<body>  
<div id="myDiv">
	<c:forEach items="${sessionScope.userList }" var="user">
		<table>
			<tr>
				<td>用户ID</td>
				<td><span>${user.id }</span></td>
			</tr>
			<tr>
				<td>电&nbsp; &nbsp; 话</td>
				<td><span>${user.mobile }</span></td>
			</tr>
			<tr>
				<td>邮&nbsp; &nbsp; 箱</td>
				<td><span>${user.email }</span></td>
			</tr>
			<tr>
				<td>地&nbsp; &nbsp; 址</td>
				<td><span>${user.userAddress }</span></td>
			</tr>
			<tr>
				<td>密&nbsp; &nbsp; 码</td>
				<td><span><a href="UserServlet?opr=selectPwd&id=${user.id }"><input type="button" value="修改密码"/></a></span></td>
			</tr>
			<tr>
				<td>身份证号</td>
				<td><span>${user.identityCode }</span></td>
			</tr>
			<tr>
				<td>类&nbsp; &nbsp; 型</td>
				<td>
					<span>
						<c:if test="${user.type==0 }">普通会员</c:if>
						<c:if test="${user.type==1 }">管理员</c:if>
					</span>
				</td>
			</tr>
		</table>
	</c:forEach>
</div>
</body>
<!--[if IE 6]>
<script src="//letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->
</html>
